﻿/**
 * ...
 * @author sminutoli
 */
import com.dmotiko.prune.*;
import com.dmotiko.general.*;
 
class BindLibrary {
	
	private var mc10years:BaseClip;
	private var mcLogo:BaseClip;
	private var mcShopOnline:BaseClip;
	private var mcMainNews:BaseClip;
	private var mcNavBar:BaseClip;
	private var mcSol:BaseClip;
	private var mcShadow:BaseClip;
	private var mcShadowTop:BaseClip;
	private var mcContact:BaseClip;
	private var mcCampaignBar:BaseClip;
	private var mcCampaignPhotoBar:BaseClip;
	private var mcGacetilla:BaseClip;
	private var mcNewsletter:BaseClip;
	private var mcNews:BaseClip;
	private var mcStores:BaseClip;
	private var mcStoresBar:BaseClip;
	private var mcCollection:BaseClip;
	private var mcCollectionBar:BaseClip;
	private var mcMainContent:BaseClip;
	private var mcSound:BaseClip;
	private var mcFashion:BaseClip;
	private var mcFashionZoom:BaseClip;
	private var mcFashionBar:BaseClip;
	private var mcBelong:BaseClip;
	private var mcGift:BaseClip;
	private var mcFAQ:BaseClip;
	private var mcPrune:BaseClip;
	
	public function BindLibrary( timeline:MovieClip ) 
	{
		//logos
		mcLogo = BaseClip( timeline.attachMovie( "logoPrune", "logoPrune", 200, { _x: 63, _y: 41 } ) );
		mcLogo.onRelease = function() {
			this.dispatchEvent( { type: BaseClipEvent.CHANGED, target: this } );
		}
		
		mc10years = BaseClip( timeline.attachMovie( "logo10years", "logo10years", 199, { _y: 0 } ) );
		mc10years._x = Stage.width - mc10years._width - 10;
				
		mcShopOnline = BaseClip( timeline.attachMovie( "pruneShopBtn", "shopOnline", 198 ) );
		mcShopOnline._y = Stage.height - mcShopOnline._height - 10;
		mcShopOnline._x = 150;
		
		mcMainNews = BaseClip( timeline.attachMovie( "MainNews", "mainNews", 197 ) );
		mcMainNews._x = 47;
		mcMainNews._y = mcShopOnline._y;
				
		
		
		mcFashionZoom = BaseClip ( timeline.attachMovie( "FashionZoom", "fashionZoom", 191 ) ); // depth 191, over the shadowTop and the sound bar
		mcSound = BaseClip ( timeline.attachMovie( "SoundSection", "sound", 190 ) );
		
		//bars
		mcNavBar = BaseClip( timeline.attachMovie( "NavBar", "navBar", 100, { _x: 38, _y: 121 }  ) );
		mcCampaignBar = BaseClip( timeline.attachMovie( "CampaignBar", "campaignBar", 101) );
		mcStoresBar = BaseClip( timeline.attachMovie( "StoresBar", "storesBar", 102) );
		mcCollectionBar = BaseClip( timeline.attachMovie( "CollectionBar", "collectionBar", 103) );
		mcFashionBar = BaseClip( timeline.attachMovie( "FashionBar", "fashionBar", 104) );
				
		//over sections			
		mcContact = BaseClip ( timeline.attachMovie( "ContactoSection", "contactoSection", 30, { _x: 367 } ) );
		mcGacetilla = BaseClip( timeline.attachMovie( "GacetillaSection", "gacetillaSection", 31, { _x: 367, _y: 144 } ) );
		mcStores = BaseClip ( timeline.attachMovie( "StoresSection", "storesSection", 32 ) );
		mcNewsletter = BaseClip ( timeline.attachMovie( "NewsletterSection", "newsletterSection", 33, { _x: 367 } ) );		
		mcNews = BaseClip ( timeline.attachMovie( "NewsSection", "newsSection", 34 ) );
		mcFashion = BaseClip ( timeline.attachMovie( "FashionSection", "fashionSection", 35 ) );
		mcBelong = BaseClip ( timeline.attachMovie( "BelongSection", "belongSection", 36, { _x: 367, _y: 100 } ) );
		mcPrune = BaseClip ( timeline.attachMovie( "PruneSection", "pruneSection", 37, { _x: 367, _y: 100 } ) );
		mcGift = BaseClip ( timeline.attachMovie( "GiftSection", "giftSection", 38, { _x: 367, _y: 100 } ) );
		mcFAQ = BaseClip ( timeline.attachMovie( "FAQSection", "faqSection", 39, { _x: 367, _y: 100 } ) );
		
		//shadow and sun
		mcShadowTop = BaseClip( timeline.attachMovie( "ShadowClipTop", "shadowTop", 60 ) );
		mcShadow = BaseClip( timeline.attachMovie( "ShadowClip", "shadow", 21 ) );
		mcCampaignPhotoBar = BaseClip( timeline.attachMovie( "CampaignPhotoBar", "campaignBar", 20) );
		mcSol = BaseClip( timeline.attachMovie( "SolClip", "sol", 19 ) );
		
		//back sections
		mcMainContent = BaseClip( timeline.attachMovie( "MainContent", "mainContent", 10 ) );
		
		//mcCollection = BaseClip ( timeline.attachMovie( "CollectionSection", "collectionSection", 9 ) );
		/*
		timeline.createEmptyMovieClip( "img", -1 );
		timeline.img.loadMovie("home.swf");
		*/
	}
		
	public function getLogo():BaseClip { return mcLogo; }
	public function getShopOnline():BaseClip { return mcShopOnline; }
	public function getMainNews():BaseClip { return mcMainNews; }
	public function get10years():BaseClip { return mc10years; }
	public function getSound():BaseClip { return mcSound; }
	
	public function getNavBar():BaseClip { return mcNavBar; }
	public function getCampaignBar():BaseClip { return mcCampaignBar; }
	public function getCampaignPhotoBar():BaseClip { return mcCampaignPhotoBar; }
	public function getStoresBar():BaseClip { return mcStoresBar; }
	public function getCollectionBar():BaseClip { return mcCollectionBar; }
	public function getFashionBar():BaseClip { return mcFashionBar; }
	
	public function getShadow():BaseClip { return mcShadow; }
	public function getShadowTop():BaseClip { return mcShadowTop; }
	public function getSol():BaseClip { return mcSol; }
	
	public function getContact():BaseClip { return mcContact; }
	public function getGacetilla():BaseClip { return mcGacetilla; }
	public function getNewsletter():BaseClip { return mcNewsletter; }
	public function getNews():BaseClip { return mcNews; }
	public function getStores():BaseClip { return mcStores; }
	public function getCollection():BaseClip { return mcCollection; }
	public function getMainContent():BaseClip { return mcMainContent; }
	public function getFashion():BaseClip { return mcFashion; }
	public function getFashionZoom():BaseClip { return mcFashionZoom; }
	public function getBelong():BaseClip { return mcBelong; }
	public function getGift():BaseClip { return mcGift; }
	public function getFAQ():BaseClip { return mcFAQ; }
	public function getPrune():BaseClip { return mcPrune; }
	
}